package com.hethongviet.job.pages;

import com.hethongviet.job.AppMain;
import com.hethongviet.job.R;

import android.app.Activity;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.widget.TextView;

public class AboutActivityRight extends Activity
{
	
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		
		super.onCreate(savedInstanceState);
		/* Full screen */
		AppMain.prepareWindow(this);

		setContentView(R.layout.page_about_right);
		
		String versionName = "1.0";
		try
		{
			PackageInfo packageInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
			versionName = packageInfo.versionName;
		} catch (NameNotFoundException e)
		{
			e.printStackTrace();
		}
		
		final TextView textViewVersion = (TextView)findViewById(R.id.textViewVersion);
		textViewVersion.setText(getString(R.string.textVersionTitle) + " " + versionName);
		
		AppMain.debug("111111 onCreate");
	}
	
	@Override
	protected void onResume()
	{
		AppMain.debug("111111 onresume");
		super.onResume();
	}
	
	@Override
	protected void onStart()
	{
		AppMain.debug("111111 onStart");
		super.onStart();
	}
	
	@Override
	protected void onStop()
	{
		AppMain.debug("111111 onStop");
		super.onStop();
	}
	@Override
	protected void onRestart()
	{
		AppMain.debug("111111 onRestart");
		super.onRestart();
	}
	@Override
	protected void onPause()
	{
		AppMain.debug("111111 onPause");
		super.onPause();
	}
	@Override
	protected void onDestroy()
	{
		AppMain.debug("111111 onDestroy");
		super.onDestroy();
	}
}
